package com.dj.mingkong.portal.biz.controller.system.vo.request;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 注册参数实体
 *
 * @author zenglonghui
 * @date: 2022/8/18 10:49
 */
@Data
@Accessors(chain = true)
public class RegisterVo implements Serializable {
    /**
     * 用户名
     */
    @NotBlank(message = "username can not be blank")
    @Size(min = 1, max = 18, message = "username invalid")
    private String username;

    /**
     * 密码
     */
    @NotBlank(message = "password can not be blank")
    @Size(min = 6, max = 28, message = "password invalid")
    private String password;

    /**
     * 邮箱
     */
    @NotBlank(message = "email can not be blank")
    @Email(message = "email invalid")
    @Size(min = 1, max = 90, message = "email invalid")
    private String email;

    /**
     * 验证码
     */
    @NotBlank(message = "verifyCode can not be blank")
    @Size(min = 4, max = 4, message = "verifyCode invalid")
    private String verifyCode;
}
